package com.han.elasticsearch.util;

import org.slf4j.Logger;

/**
 * @author hanjl
 * @Description 日志工具类
 * @ClassName LogUtil
 * @createTime 2021/12/23 13:48
 */
public class LogUtil {

    public static void error(Logger logger, String format, Object arg) {
        if (logger.isErrorEnabled()) {
            logger.error(format, arg);
        }
    }

    public static void error(Logger logger, String format, Object arg1, Object arg2) {
        if (logger.isErrorEnabled()) {
            logger.error(format, arg1, arg2);
        }
    }
}
